using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN ThangDanhGiaService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: ThangDanhGiaService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class ThangDanhGiaService : IThangDanhGiaService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: ThangDanhGia_ID</para>
		/// <para>Output: ThangDanhGiaEntity</para>
		///</summary>
		public ThangDanhGiaEntity SelectOne(int ThangDanhGia_ID){
			ThangDanhGiaDAO dao = new ThangDanhGiaDAO();
			return dao.SelectOne(ThangDanhGia_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of ThangDanhGiaEntity</para>
		///</summary>
		public List<ThangDanhGiaEntity> SelectAll(){
			ThangDanhGiaDAO dao = new ThangDanhGiaDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			ThangDanhGiaDAO dao = new ThangDanhGiaDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of ThangDanhGiaEntity</para>
		///</summary>
		public List<ThangDanhGiaEntity> SelectAllFilter(string strFilter){
			ThangDanhGiaDAO dao = new ThangDanhGiaDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			ThangDanhGiaDAO dao = new ThangDanhGiaDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: ThangDanhGiaEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(ThangDanhGiaEntity o){
			ThangDanhGiaDAO dao = new ThangDanhGiaDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: ThangDanhGiaEntity</para>
		/// <para>Output: ThangDanhGiaEntity</para>
		///</summary>
		public ThangDanhGiaEntity SaveRet(ThangDanhGiaEntity o){
			ThangDanhGiaDAO dao = new ThangDanhGiaDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of ThangDanhGiaEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<ThangDanhGiaEntity> list){
			ThangDanhGiaDAO dao = new ThangDanhGiaDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of ThangDanhGiaEntity</para>
		/// <para>Output: List of ThangDanhGiaEntity</para>
		///</summary>
		public List<ThangDanhGiaEntity> SaveListRet(List<ThangDanhGiaEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: ThangDanhGiaEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(ThangDanhGiaEntity o){
			ThangDanhGiaDAO dao = new ThangDanhGiaDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of ThangDanhGiaEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<ThangDanhGiaEntity> list){
			ThangDanhGiaDAO dao = new ThangDanhGiaDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateTenThangDanhGia</para>
		/// <para>Input: NewTenThangDanhGia,ThangDanhGia_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenThangDanhGia(string NewTenThangDanhGia,int ThangDanhGia_ID){
			ThangDanhGiaDAO dao = new ThangDanhGiaDAO();
			return dao.UpdateTenThangDanhGia(NewTenThangDanhGia,ThangDanhGia_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateGhiChu</para>
		/// <para>Input: NewGhiChu,ThangDanhGia_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateGhiChu(string NewGhiChu,int ThangDanhGia_ID){
			ThangDanhGiaDAO dao = new ThangDanhGiaDAO();
			return dao.UpdateGhiChu(NewGhiChu,ThangDanhGia_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: ThangDanhGiaEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(ThangDanhGiaEntity o){
			ThangDanhGiaDAO dao = new ThangDanhGiaDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: ThangDanhGia_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int ThangDanhGia_ID){
			ThangDanhGiaDAO dao = new ThangDanhGiaDAO();
			return dao.DeleteByID(ThangDanhGia_ID);
		}
		#endregion

		#region Select,delete by ThangDanhGia_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END ThangDanhGiaWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

